<script type="text/javascript">
function processUpdateForm() {		
 	var checkResult = true;
 	var form = document.website_settings;	
 	if(form)
 	{	
 		form.actionForm.value = 'submit'; 	
	 	form.submit();
	 	
		return true;
 	}	
 	return false;
	}
	
</script> 
<div id="page-title">
				<h1 class="page-heading">Website Settings Page</h1>			
			</div>            
			<div id="breadcrumb" class="transparent">
				<p> <img src="<{$APPLICATION_URL}>/Themes/Default/Images/res-img/home.png" class="home" alt=""> 
				<a href="<{$APPLICATION_URL}>" title="Slappit.com Homepage">Home</a> / 
				<a href="<{$APPLICATION_URL}>/Browse/MyAccount/index" title="Slappit.com User Panel">Website Admin Panel</a> / 
				<a href="<{$APPLICATION_URL}>/Browse/MyAccount/settings" title="Your Website Settings">Website Settings</a>
			</div>                 
			<div id="main-content">
				<article id="main-article">
					<ul id="filtering-nav">
      					    <li><a href="<{$APPLICATION_URL}>/Browse/MyAccount/index" title="Slappit.com User Panel">Home</a></li>
        					<li><a href="<{$APPLICATION_URL}>/Browse/MyAccount/settings" title="Your website settings">Website Settings</a></li>
                            <li><a href="<{$APPLICATION_URL}>/Browse/MyAccount/edit" title="Your personal informaion settings">User Settings</a></li>
							<{if $isExpired}>
        					<li><a href="<{$APPLICATION_URL}>/Browse/Payment/index" title="Upgrade or downgrade your package">Upgrade/Downgrade Package</a></li>
							<{/if}>
        					<li><a href="<{$currentUser->getHomeUrl()}>" title="View your website">View Website Homepage</a></li>
      				</ul>
					<{if $isDemoMode == true}>
					<p><h3 style="font-family:arial"><font color="red">THIS IS DEMO MODE. YOU CANNOT EDIT ANY INFORMATION HERE</font></h3><br/>
					</p>
					<{/if}>
                    <form action="<{$APPLICATION_URL}>/Browse/MyAccount/settings" method="post" id="save-content" name="website_settings" enctype="multipart/form-data">
                   	   <ol class="forms">
							<{foreach item=error from=$errorInfoMessage}>
						   <li><p><small>Error: <{$error}></small></p></li>							   
						   <{/foreach}>
					   
                           <li><p>If you are wanting to use your own domain name (for example domain.com), enter it here.</p><p><small>(If you are needing help please <a href="http://www.slappit.com/Browse/Faq/list/catId/2" target="blank">click here</a>)</small></p></li>							  
                   		   <li><label for="url">Domain</label><input type="text" id="url" name="url" value="<{$url}>" <{if $isDemoMode == true}>readonly="readonly"<{/if}>></li>	                 
                   		   <li><label for="name">Website Name</label><input type="text" id="name" name="name" value="<{$name}>" <{if $isDemoMode == true}>readonly="readonly"<{/if}>></li>
						   <li><br></li>
						   <li>
						     <p>Update your Web Logo, favicon, Facebook, Twiiter, Linkedin, Dribbble, Digg, Vimeo, Youtube, Forrst, Flickr Link</p></li>	
						<{if $website_logo != ""}>						   
							<li><p><img src="<{$website_logo}>" width="140px"></p></li>
							<{/if}>
						   <li><label for="website-logo">Website Logo</label><input type='file' id='website-logo' name='website-logo' style='padding: 0px;' accept="*.png, *." <{if $isDemoMode == true}>readonly="readonly"<{/if}>></li>	                 
						   <{if $website_favicon != ""}>						   
							<li><p><img src="<{$website_favicon}>" width="32px"></p></li>
							<{/if}>
						   <li><label for="website-favicon">Favicon</label><input type='file' id='website-favicon' name='website-favicon' style='padding: 0px;' <{if $isDemoMode == true}>readonly="readonly"<{/if}>></li>
						   <li><label for="facebook">Facebook</label><input type="text" id="facebook" name="facebook" value="<{$facebook}>" <{if $isDemoMode == true}>readonly="readonly"<{/if}>></li>
						   <li><label for="twitter">Twitter</label><input type="text" id="twitter" name="twitter" value="<{$twitter}>" <{if $isDemoMode == true}>readonly="readonly"<{/if}>></li>
						   <li><label for="linkin">Linkedin</label><input type="text" id="linkin" name="linkin" value="<{$linkin}>" <{if $isDemoMode == true}>readonly="readonly"<{/if}>></li>
						   <li><label for="dribbble">Dribbble</label><input type="text" id="dribbble" name="dribbble" value="<{$dribbble}>" <{if $isDemoMode == true}>readonly="readonly"<{/if}>></li>
						   <li><label for="digg">Digg</label><input type="text" id="digg" name="digg" value="<{$digg}>" <{if $isDemoMode == true}>readonly="readonly"<{/if}>></li>
						   <li><label for="vimeo">Vimeo</label><input type="text" id="vimeo" name="vimeo" value="<{$vimeo}>" <{if $isDemoMode == true}>readonly="readonly"<{/if}>></li>
						   <li><label for="youtube">Youtube</label><input type="text" id="youtube" name="youtube" value="<{$youtube}>" <{if $isDemoMode == true}>readonly="readonly"<{/if}>></li>
						   <li><label for="forrst">Forrst</label><input type="text" id="forrst" name="forrst" value="<{$forrst}>" <{if $isDemoMode == true}>readonly="readonly"<{/if}>></li>
						   <li><label for="flickr">Flickr</label><input type="text" id="flickr" name="flickr" value="<{$flickr}>" <{if $isDemoMode == true}>readonly="readonly"<{/if}>></li>
						   
        <li><br><p>Please Select A Template For Your Site</p><p><small>If you would like to see the templates please click on the designs tab in the header navigation area.</small></p></li>
        <li><label for="templates">Templates</label>
		    <select id="templates" name="templates">
				<{foreach item=catEntity from=$catList}>
					<optgroup label="<{$catEntity->name}>">
					<{assign var=listTemplate value=$catEntity->getTemplates()}>
					<{foreach item=templateEntity from=$listTemplate}>					
							<option value="<{$templateEntity->id}>" <{if $currentTemplateId == $templateEntity->id}>selected<{/if}>><{$templateEntity->name}></option>
					<{/foreach}>
					</optgroup>
				<{/foreach}>
		</select>     </li>  	                 
                       	   <li><a id="submit-form" class="silver-button" onclick="return processUpdateForm();">Save</a></li>
               	      </ol>
					  <input type="hidden" id="actionForm" name="actionForm" value=""/>
               	  </form>
                      	<div id="service-page">
                      	  <div class="clear"></div> 
                      	</div>

			  </article>	
		
			</div>
		  <div class="space transparent"><a href="#top" id="scroll-top"><img src="<{$APPLICATION_URL}>/Themes/Default/Images/res-img/top.png" alt=""></a></div>